package cn.vcjf.weapp.api.goods.mapper;

import cn.vcjf.weapp.api.goods.entity.GoodsInfo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
public interface GoodsInfoMapper extends BaseMapper<GoodsInfo> {

	List<GoodsInfo> findHotGoodList(Page<GoodsInfo> page, @Param("goodsInfo") GoodsInfo goodsInfo);

	List<GoodsInfo> selectPage(Page<GoodsInfo> page, @Param("goodsInfo") GoodsInfo goodsInfo);

	GoodsInfo selectGoodDetailInfo(GoodsInfo goodsInfo);

	List<GoodsInfo> findRecommendedGoodList(Page<GoodsInfo> page, @Param("goodsInfo") GoodsInfo goodsInfo);

}
